/**
 * Created by billy on 2020/7/1.
 */
var filterList = [""]

module.exports = function ($node, $createAttribs, $createHtml, $type = "view")
{
	var tagName = $type == "view" ? $node.name : "p";
	var attribs = $node.attribs || {};
	if (attribs.class == "image-container-fill"
		&& attribs.style
		&& attribs.style.match(/padding-bottom:.+?%/g).length > 0)
	{
		return "";
	}
	return `<${tagName}${createAttribs($node, $createAttribs, $type)}>${$createHtml($node.children, $type)}</${tagName}>`;
}

function createAttribs($node, $createAttribs, $type)
{
	var attribs = $node.attribs;
	if (attribs.label)
	{
		delete attribs.label;
	}
	return $createAttribs($node, $type);
}